#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
int main()
{
	int x=5,y=10;
	int i,j;
	char input;
	while(1)
	{
		system("cls");
		for(i=0;i<x;i++)
		{
			
		for(j=0;j<y;j++)
			printf(" ");
		printf("  |\n");
		}
        for(j=0;j<y;j++)
			printf(" ");
		printf("  *\n");
		for(j=0;j<y;j++)
			printf(" ");
		printf("*****  \n");
		for(j=0;j<y;j++)
			printf(" ");
		printf(" * *\n");
      input=getch();
		if(input=='s')
			x++;
		if(input=='w')
			x--;
		if(input=='a')
			y--;
		if(input=='d')
		    y++;

	}
	return 0;
}